﻿using System;
using System.Drawing;
using System.Collections.Generic;
using Un4seen.Bass.Misc;

namespace Sirene.Core
{
    /// <summary>
    /// This calss response for all visual effects
    /// such as: spectrum, filling progress bar, e.t.c
    /// </summary>
    public class SireneVisual
    {
        private Bitmap _Spectrum;

        private int _width;
        private int _height;
        private int _stream;
        

        // visuals class instance
        private Visuals _vis = new Visuals();

        // empty class constructor
        public SireneVisual() { ; }

        // class constructor to get current stream
        public SireneVisual(int intGetStream)
        {
            _stream = intGetStream;
        }

        public Bitmap GetSpectrum
        {
            get { return _Spectrum; }
            set { _Spectrum = value; }
        }

        public int Width
        {
            get { return _width; }
            set { _width = value; }
        }

        public int Height
        {
            get { return _height; }
            set { _height = value; }
        }

        /// <summary>
        ///  Method to realese bass spectrum 
        /// </summary>
        public void DrawSpectrum()
        {
            _Spectrum = _vis.CreateSpectrumLine(_stream, Width, Height, Color.Lime, Color.Red, Color.Black, 2, 2, false, false, false);
        }
    }
}
